<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Produit
 *
 * @author nlaurent
 */
abstract class Produit {
 private $reference;
 private $prix;
 function __construct($reference, $prix) {
     $this->reference = $reference;
     $this->prix = $prix;
 }

 public function getReference() {
     return $this->reference;
 }

 public function setReference($reference) {
     $this->reference = $reference;
 }

 public function getPrix() {
     return $this->prix;
 }

 public function setPrix($prix) {
     $this->prix = $prix;
 }

 public function __toString() {
     return "la reference est : ".$this->reference." ,le prix est de : ".$this->prix." €";
 }
public abstract function getClasse(); 
    

}

?>
